<div id="dlg"></div><div id="dlgs"></div>
<table class="pcShowContent">
	<tbody>
  		<tr>
			<td width="20%">			
				<div class="pcShowMainImage">
        			<?php $cover = field_get_items('node', $node, 'field_book_cover'); ?>
					<img alt="<?php print $node->title; ?>" src="<?php print image_style_url('width_340', $cover[0]['uri']); ?>" />
        		</div>
    		</td>
					
			<td width="300">							
				<h1><?php print $node->title; ?></h1>
       			<?php 
					$isbn = field_get_items('node', $node, 'field_book_sin');
					$author = field_get_items('node', $node, 'field_book_author');
					$pub = field_get_items('node', $node, 'field_book_public');
					$bind = field_get_items('node', $node, 'field_book_bind');
					$body = field_get_items('node', $node, 'body');
					$age = field_get_items('node', $node, 'field_tax_age');
					$topic = field_get_items('node', $node, 'field_tax_topic');
					$dashi = field_get_items('node', $node, 'field_tax_author');
				?>
				<p><strong>书号:</strong><?php print $isbn[0]['value']?></p>
        		<p><strong>作者:</strong><?php print $author[0]['value']?></p>
        		<p><strong>出版社:</strong><?php print $pub[0]['value']?></p>
				<p><strong>装订:</strong><?php print $bind[0]['value']?></p>
        		<div><p><strong>年龄阶段:</strong></p>
        		<?php
					$terms = array();
					foreach($age as $value) {
						$term = taxonomy_term_load($value['tid']);
						$terms[] = '<span><a href="#">'. $term->name .'</a></span>';
					}
					print implode(',',$terms);
				?>
         		</div>
         		<div><p><strong>主题分类:</strong></p>
        			<?php
						$terms = array();
						foreach($topic as $value) {
							$term = taxonomy_term_load($value['tid']);
							$terms[] = '<span><a href="#">'. $term->name .'</a></span>';
						}
						print implode(',',$terms);
					?>
         		</div>
         		<div><p><strong>出版社:</strong></p>
        			<?php
						$terms = array();
						foreach($dashi as $value) {
							$term = taxonomy_term_load($value['tid']);
							$terms[] = '<span><a href="#">'. $term->name .'</a></span>';
						}
						print implode(',',$terms);
					?>
         		</div>
    		</td>
		</tr>
        <tr><td><?php 
        			if ($logged_in) {
        				print '<input class="book-collect book-button" type="submit" 
        				value="收藏" nid="'.$node->nid.'">';
        				global $user;
        				$roles = array_keys($user->roles);
        				if(in_array(3, $roles) || in_array(4, $roles)) {
        					print '<input class="book-s book-button" 
        					type="submit" value="订阅" nid="'.$node->nid.'">';
        				}
					}
				?>
        	</td>
        </tr>        
		<tr> 
			<td colspan="2">
				<h1>简介：</h1>	
				<div class="book-body"><?php print $body[0]['value']; ?></div>	
			</td>
		</tr>
	</tbody>
</table>

<?php print render($content['comments']); ?>
